< previous page page_341 next page >

Page 341
12181-0341a.gif
Figure 12.26.
Defining the data bound properties of the
custom repeated control.
Note
Because the command you are using accesses a table in the database without using SQL, you can display only the
FirstName or LastName field in a textbox not both as a full name. To do this, you must use a SQL query to combine the two fields together into a single field that can then be displayed in a single text box.

For each property of the custom control, add the property and data field to the RepeaterBindings collection as listed in Table 12.6. When you have finished, click OK to close the dialog. To display this form, add another Command button to the main form in the project and add a line of code to show the form frmRepeater when clicked.
TABLE 12.6. SETTING THE DATA-BINDINGS PROPERTIES FOR THE CONTROL.
PropertyNameDataField
txtEmpBDateBirthDate
txtEmpNoEmployeeID
txtEmpNmeFirstName

When you run the application and click the new Command button, you will see the employee data displayed in the Data Repeater control as shown in Figure 12.27.

 
< previous page page_341 next page >

If you like this book, buy it!